Document Solutions for PDF
GrapeCity.Documents.Pdf Assembly / GrapeCity.Documents.Pdf Namespace / Page Class / ReplaceText Method / ReplaceText(TextMapFragment,String,Font,Nullable<Single>) Method
The text range.
The replacement text.
The font to use on newText, if a null reference (Nothing in Visual Basic) the current font will be used.
The font size to use on newText, if a null reference (Nothing in Visual Basic) the current font size will be used.

In This Topic
    ReplaceText(TextMapFragment,String,Font,Nullable<Single>) Method
    In This Topic
    Replaces a specified text range on the current page.
    Syntax
    'Declaration
     
    Public Overloads Sub ReplaceText( _
       ByVal fragment As TextMapFragment, _
       ByVal newText As System.String, _
       Optional ByVal font As Font, _
       Optional ByVal fontSize As System.Nullable(Of Single) _
    ) 
    public void ReplaceText( 
       TextMapFragment fragment,
       System.string newText,
       Font font,
       System.Nullable<float> fontSize
    )

    Parameters

    fragment
    The text range.
    newText
    The replacement text.
    font
    The font to use on newText, if a null reference (Nothing in Visual Basic) the current font will be used.
    fontSize
    The font size to use on newText, if a null reference (Nothing in Visual Basic) the current font size will be used.
    See Also